#include"queue.h"

void test()
{
	Queue qu;
	QueueInit(&qu);
	QueuePush(&qu, 1);
	QueuePush(&qu, 2);
	printf("%d\n", QueueBack(&qu));

	QueuePush(&qu, 3);
	QueuePush(&qu, 4);
	
	printf("%d\n", QueueSize(&qu));
	while(!QueueEmpty(&qu))
	{
		printf("%d ", QueueFront(&qu));
		QueuePop(&qu);
	}
	printf("\n%d\n", QueueSize(&qu));

	QueueDestroy(&qu);
}

int main()
{
	test();
	return 0;
}